home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970626-19970929
/
000354_news@newsmaster….columbia.edu _Tue Sep 16 09:59:48 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA07741
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 16 Sep 1997 09:59:48 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id JAA01605
for kermit.misc@watsun; Tue, 16 Sep 1997 09:59:47 -0400 (EDT)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: read line?
Date: 16 Sep 1997 13:59:46 GMT
Organization: Columbia University
Lines: 31
Message-ID: <5vm3ci$mb2$1@apakabar.cc.columbia.edu>
References: <5vgnsl$qi@sjx-ixn11.ix.netcom.com> <5vjkc7$7de$1@apakabar.cc.columbia.edu> <5vkpq6$rt2@sjx-ixn11.ix.netcom.com>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:7677
In article <5vkpq6$rt2@sjx-ixn11.ix.netcom.com>,
Jeff Lightfoot <jeffml@CHECK-SIG-FOR-ADDRESS.com> wrote:
: According to Frank da Cruz <fdc@watsun.cc.columbia.edu>:
: >In article <5vgnsl$qi@sjx-ixn11.ix.netcom.com>,
: >Jeff Lightfoot <jeffml@CHECK-SIG-FOR-ADDRESS.com> wrote:
: >: Ok, this has to be simple but...
: >: At the K95 prompt I can open a file, read a line, echo that line, read
: >: another ... everything works as expected.
: >: But if I read a line, use while success { echo \m(line), read \m(line) }
: >: I get the first line repeated for each of the lines in the file.
: >: This is supposed to work, but for the life of me, it won't happen.
: >:
: >Syntax problem. \m(xxx) is used to retrieve the value of xxx, and so is
: >not used in READ, DEFINE, ASSIGN, etc:
:
: Ahhh. Chapter 18, pg. 409 in Using C-Kermit 2nd Edition, gives the example
: I used.
:
Oh no, another mistake. It should read:
read line
while success { echo \m(line), read line }
: This brings up a point. Should my K-95 have come with an addendum that
: shows mistakes in the print version?
:
You'll find it at the end of the CKERMIT2.UPD file, in the Errata & Corrigenda
section. And this one will be added there in the next release. Thanks for
spotting it.
- Frank